package com.itheima.test;


import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class producer {

    @Autowired
    private RocketMQTemplate template;

    /**
     * 普通发送
     */
    @Test
    public void testSend(){
        template.convertAndSend("topic2","普通发送消息...");

    }


}
